// 引入createStore 用于创建store
// 引入applyMiddleware用于正常运行异步action
import {createStore, applyMiddleware} from 'redux'
// 引入redux-devtools-extension 使用redux扩展程序
import { composeWithDevTools } from 'redux-devtools-extension'
// 引入汇总之后的reducer
import allReducers from './reducers/index'
// 引入redux-thunk，用于支持异步action yarn start redux-thunk
import thunk from 'redux-thunk'

export default createStore(allReducers, composeWithDevTools(applyMiddleware(thunk)))
